package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 订单管理对象 t_order_from
 * 
 * @author ruoyi
 * @date 2024-06-13
 */
public class TOrderFrom extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    @Excel(name = "订单id")
    private Long id;

    /** 父订单id */
    @Excel(name = "父订单id")
    private Long pId;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private Long type;

    /** 订单等级 */
    @Excel(name = "订单等级")
    private Long grade;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String no;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal price;

    /** 订单描述 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单描述", width = 30, dateFormat = "yyyy-MM-dd")
    private Date description;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名字 */
    @Excel(name = "用户名字")
    private String userName;

    /**  */
    @Excel(name = "")
    private Long skuId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String skuName;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private String skuNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setGrade(Long grade) 
    {
        this.grade = grade;
    }

    public Long getGrade() 
    {
        return grade;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDescription(Date description) 
    {
        this.description = description;
    }

    public Date getDescription() 
    {
        return description;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setSkuName(String skuName) 
    {
        this.skuName = skuName;
    }

    public String getSkuName() 
    {
        return skuName;
    }
    public void setSkuNum(String skuNum) 
    {
        this.skuNum = skuNum;
    }

    public String getSkuNum() 
    {
        return skuNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pId", getpId())
            .append("type", getType())
            .append("grade", getGrade())
            .append("status", getStatus())
            .append("no", getNo())
            .append("price", getPrice())
            .append("description", getDescription())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("skuId", getSkuId())
            .append("skuName", getSkuName())
            .append("skuNum", getSkuNum())
            .toString();
    }
}
